#ifndef A6_STUDENT_H
#define A6_STUDENT_H

#include <uC++.h>
#include "Printer.h"
#include "NameServer.h"
#include "WATCardOffice.h"
#include "WATCard.h"
#include "VendingMachine.h"
#include "Global.h"

_Task Student 
{
	Printer&		myPrinter;
	NameServer&		myNameServer;
	WATCard*		myWatCard;		
	FWATCard		myFatCard;
	WATCardOffice&	myCardOffice;
	
	bool			myValidateCard;
	unsigned int	myID;
	unsigned int 	myMaxPurchases;
	VendingMachine::Flavours 	
					myFavouriteDrink;
	VendingMachine* myVendingMachine;

	void main();
public:
	~Student();
	Student( Printer &prt, NameServer &nameServer, 
			 WATCardOffice &cardOffice, unsigned int id,
			 unsigned int maxPurchases );
};

#endif
